import apiClient from './axios'

export default {
  // 获取律师列表
  getLawyerList(searchParams) {
    return apiClient.post('/lawyers/list', searchParams)
  },

  // 获取专业领域列表
  getSpecialties() {
    return apiClient.get('/lawyers/specialties')
  },

  // 获取律师详情
  getLawyerDetail(id) {
    return apiClient.get(`/lawyers/${id}`)
  },

  // 开始咨询
  consultLawyer(id) {
    return apiClient.post(`/lawyers/${id}/consult`)
  },
}
